package com.zoop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.zoop.service.DemoService;

@Controller
public class DemoController {

	@Autowired
	private DemoService demoService;
	
	@RequestMapping(value = "/say.do")
	public void saySomething(@RequestParam(value="name") String name){
		System.out.println(demoService.sayHello(""));
	}
	
}
